package com.woniuxy02;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-10-24 15:51
 */
public class Test01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int score=0, sum = 0, avg;

        for (int i = 1; i <= 3; i++) {
            System.out.println("输入第" + i + "名学员的成绩");
            score = scanner.nextInt();
            System.out.println("学生成绩:"+score);
            sum = sum + score;
        }
        avg=sum/3;
        System.out.println("score="+score);
        System.out.println(sum);
        //输出每个同学的成绩
        System.out.println(avg);

    }
}
